/*
 * Filename: g:\espidf_workspace\idf_S3_T-Watch\main\audio\mp3_codec.h
 * Path: g:\espidf_workspace\idf_S3_T-Watch\main\audio
 * Created Date: Wednesday, June 25th 2025, 4:55:57 pm
 * Author: sss
 * 
 * Copyright (c) 2025 Your Company
 */

#pragma once


class MP3_CODEC
{
private:
    MP3_CODEC(/* args */);
    ~MP3_CODEC();
    /* data */
public:
    static MP3_CODEC &get_instance()
    {
        static MP3_CODEC instance;
        return instance;
    };
    MP3_CODEC(MP3_CODEC const &) = delete;
    MP3_CODEC& operator=(MP3_CODEC const &) = delete;
    
    void decode_mp3_to_pcm(void *data, size_t len, uint8_t *pcm_buf, size_t* pcm_buf_size);// 将mp3解码为pcm
    void encode_pcm_to_mp3(void *pcm_buf, size_t pcm_buf_size, uint8_t *data, size_t* len);// 将pcm编码为mp3
};
